#-*- coding:utf-8 -*-
class A:
    def __init__(self,date):
        self.date = date
    def __getitem__(self,key):
        return self.date[key]
    def __setitem__(self,key,value):
        self.date[key] = value
if __name__ == '__main__':
    a = A({"age":"123"})
#    print a["name"]
    print a["age"]
    print a.__getitem__("age")
    a.__setitem__("name", "hkebao")
    print a["name"]